home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- muimaster.library/--background--
- muimaster.library/MUI_NewObjectA
- muimaster.library/MUI_DisposeObject
- muimaster.library/MUI_RequestA
- muimaster.library/MUI_AllocAslRequest
- muimaster.library/MUI_AslRequest
- muimaster.library/MUI_FreeAslRequest
- muimaster.library/MUI_Error
- muimaster.library/--background--
-
- PURPOSE
- MUI is based on boopsi, the Basic Object Oriented Programming
- System For Intuition, so why do we need an extra muimaster.library?
-
- Well, for easiness of GUI creation, MUI depends on auto class
- loading. When you try to create an instance of a MUI class and
- the class is not yet in memory, it will automatically be
- loaded from disk. Standard NewObject() calls don't support this
- feature, MUI_NewObject() calls do.
-
- Additionally, muimaster.library contains a function similiar
- to EasyRequest() to be used in MUI applications, some error handling
- support functions and lots of private calls for use of all
- MUI classes.
-
- muimaster.library/MUI_NewObjectA
-
- NAME
- MUI_NewObjectA -- Create an object from a class.
- MUI_NewObject -- Varargs stub for MUI_NewObjectA().
-
- SYNOPSIS
- object = MUI_NewObjectA( class, tags )
- D0 A0 A1
-
- APTRáMUI_NewObjectA( char *, struct TagItem * );
-
- object = MUI_NewObject( classID, Tag1, ... )
-
- APTR MUI_NewObject( classID, ULONG, ... );
-
- á FUNCTION
- This is the general method of creating objects from MUI classes.
- You specify a class by its ID string. If the class is not
- already in memory, it will be loaded using OpenLibrary("mui/%s",0)
-
- You further specify initial "create-time" attributes for the
- object via a TagItem list, and they are applied to the resulting
- generic data object that is returned. The attributes, their meanings,
- attributes applied only at create-time, and required attributes
- are all defined and documented on a class-by-class basis.
-
- INPUTS
- classID = the name/ID string of a MUI class, e.g. "Image.mui".
- Class names are case sensitive!
-
- tagList = pointer to array of TagItems containing attribute/value
- pairs to be applied to the object being created.
-
- RESULT
- A MUI object, which may be used in different contexts such
- as an application, window or gadget, and may be manipulated
- by generic functions. You eventually free the object using
- MUI_DisposeObject().
- NULL indicates failure, more information on the error can be
- obtained with MUI_Error().
-
- BUGS
-
- SEE ALSO
- MUI_DisposeObject(), MUI_Error(), SetAttrs(), GetAttr().
-
- muimaster.library/MUI_DisposeObject
-
- NAME
- MUI_DisposeObject -- Delete a MUI object.
-
- SYNOPSIS
- MUI_DisposeObject( object )
- A0
-
- VOIDáMUI_DisposeObject( APTR );
-
- á FUNCTION
- Deletes a MUI object and all of it's auxiliary data.
- These objects are all created by MUI_NewObject(). Objects
- of certain classes "own" other objects, which will also
- be deleted when the object is passed to MUI_DisposeObject().
- Read the per-class documentation carefully to be aware
- of these instances.
-
- INPUTS
- object = abstract pointer to a MUI object returned by
- MUI_NewObject(). The pointer may be NULL, in which case
- this function has no effect.
-
- RESULT
- None.
-
- BUGS
-
- SEE ALSO
- MUI_NewObject(), SetAttrs(), GetAttr().
-
- muimaster.library/MUI_RequestA
-
- NAME
- MUI_RequestA -- Pop up a MUI requester.
-
- SYNOPSIS
- MUI_RequestA(app,win,flags,title,gadgets,format,params)
- D0 D1 D2 A0 A1 A2 A3
-
- LONG MUI_RequestA ( APTR app, APTR win, LONGBITS flags,
- char *title, char *gadgets, char *format, APTR params );
-
- LONG MUI_Request ( APTR app, APTR win, LONGBITS flags,
- char *title, char *gadgets, char *format, ...);
-
- á FUNCTION
- Pop up a MUI requester. Using a MUI requester instead
- of a standard system requester offers you the possibility
- to include text containing all the text engine format codes.
-
- INPUTS
- app - The application object. If you leave this
- NULL, MUI_RequestA() will fall back to a
- standard system requester.
-
- win - Pointer to a window of the application. If
- this is used, the requester will appear centered
- relative to this window.
-
- flags - For future expansion, must be 0.
-
- title - Title for the requester window. Defaults to the
- name of the application when NULL (and app!=NULL).
-
- gadgets - Pointer to a string containing the possible answers.
- The format looks like "Save|Use|Test|Cancel".
- If you precede an entry with a '*', this answer will
- become the active object. Pressing <Return> will
- terminate the requester with this response.
-
- format - A printf-style formatting string.
-
- params - Pointer to an array of ULONG containing the parameter
- values for format.
-
- RESULT
- 0, 1, ..., N = Successive id values, for the gadgets
- you specify for the requester. NOTE: The numbering
- from left to right is actually: 1, 2, ..., N, 0.
-
- SEE ALSO
- MUIA_Text_Contents
-
- muimaster.library/MUI_AllocAslRequest
-
- NAME
- MUI_AllocAslRequest
-
- FUNCTION
- Provide an interface to asl.library. Using this ensures
- your application will benefit from future expansions
- to MUI's window and iconification handling.
-
- SEE ALSO
- asl.library/AllocAslRequest
-
- muimaster.library/MUI_AslRequest
-
- NAME
- MUI_AslRequest
-
- FUNCTION
- Provide an interface to asl.library. Using this ensures
- your application will benefit from future expansions
- to MUI's window and iconification handling.
-
- SEE ALSO
- asl.library/AslRequest
-
- muimaster.library/MUI_FreeAslRequest
-
- NAME
- MUI_FreeAslRequest
-
- FUNCTION
- Provide an interface to asl.library. Using this ensures
- your application will benefit from future expansions
- to MUI's window and iconification handling.
-
- SEE ALSO
- asl.library/FreeAslRequest
-
-
-
- muimaster.library/MUI_Error muimaster.library/MUI_Error
-
- NAME
- MUI_Error -- Return extra information from the MUI system.
-
- SYNOPSIS
- LONG MUI_Error(VOID);
-
- á FUNCTION
- Some MUI functions will set an error if they fail for
- some reason. The error functions is task sensitive,
- only the task that caused the error will receive it.
-
- RESULT
- Currently, the following error values are defined:
-
- MUIE_OK - no error, everything allright.
- MUIE_OutOfMemory - went out of memory.
- MUIE_OutOfGfxMemory - went out of graphics memory.
- MUIE_InvalidWindowObject - NULL window specified.
- MUIE_MissingLibrary - can't open a needed library.
- MUIE_NoARexx - unable to create arexx port.
- MUIE_SingleTask - application is already running.
-
- SEE ALSO
-
-